<script setup>
import { ref } from 'vue';


</script>
<template>
  <ul class="side-menu">
    <li><router-link to="/"><span>主页</span></router-link></li>
    <li><router-link to="/LianLianKan"><span>连连看</span></router-link></li>
    <li><router-link to="/saolei"><span>扫雷</span></router-link></li>
    <li><router-link to="/huarong"><span>华容道</span></router-link></li>
    <li><router-link to="/game2048"><span>2048</span></router-link></li>
    <li><router-link to="/Tetris"><span>俄罗斯方块</span></router-link></li>
    <li><router-link to="/snake"><span>贪吃蛇</span></router-link></li>
    <li><router-link to="/brick"><span>打砖块</span></router-link></li>
    <!-- <li><router-link to="/5"><span>Cards</span></router-link></li>
    <li><router-link to="/6"><span>Menu</span></router-link></li> -->
  </ul>
</template>


<style lang="scss" scoped>

.side-menu {
  height: 100%;
  width: 60px;
  list-style-type: none;
  background: #f32c52;
  overflow: hidden;
  transition: width .3s;
}

.side-menu:hover {
  width: 300px;
  span {
    font-size: 16px;
    line-height: 60px;
    margin-left: 10px;
  }
}

.side-menu li {
  width: 300px;
}


.side-menu li a {
  display: block;
  font-size: .9rem;
  text-decoration: none;
  color: #FFF;
  height: 60px;
  span{
    font-size: 0;
  }
}

.side-menu li a:hover,
.side-menu li .router-link-exact-active {
  background: #14081d;
  display: block;
  
}
</style>